<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        var arr = [[2,3,4],[10,11,12],[20,10,20]];
        /* 对二维数组单独一项求和,最终得到字符串
            '9/33/50'
        */
        var res = []
        arr.forEach(item=>{
            var sum = 0;
            item.forEach(k=>{
                sum+=k;
            })
            res.push(sum)
        })
        console.log(res.join("/"))
    </script>
</body>
</html>